package com.probox.common.core.enums;

/**
 * @author Administrator
 */

public enum SaleServiceTypeEnum {

    refund("refund","退款","未发货可以申请退款"),
    retreat("return","退款退货","货物出现质量问题"),
    change("change","换货","发错货或质量问题");

    private SaleServiceTypeEnum(String k,String v,String desc) {
        this.setKey(k);
        this.setValue(v);
        this.setDesc(desc);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(SaleServiceTypeEnum oe: SaleServiceTypeEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;
    private String desc;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public SaleServiceTypeEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }
}
